<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Team Goosberry</title>
    <link rel="stylesheet" type="text/css" href="styles.css">
    <script src="jquery-1.10.1.min.js"></script>
	<script src="ProtoClass.js"></script>
    <script src="jquery-ui-1.10.3.custom.min.js"></script>
    <script src ="twitter-button.js"></script>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />

    <style>
    body { font-size: 82.5%; }
    label, input { display:block; }
    input.text { margin-bottom:12px; width:95%; padding: .4em; }
    fieldset { padding:0; border:0; margin-top:25px; }
    h1 { font-size: 1.2em; margin: .6em 0; }        
    div#users-contain { width: 350px; margin: 20px 0; }
    div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
    div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
    .ui-dialog .ui-state-error { padding: .3em; }
    .validateTips { border: 1px solid transparent; padding: 0.3em; }
  </style>
</head>
<body>
    
    <div id="dialog-form-worker" title="Create new worker">
  <p class="validateTips">All form fields are required.</p>
 
  <form>
  <fieldset>
    <label for="fname">First name</label>
    <input type="text" name="fname" id="fname-Worker" class="text ui-widget-content ui-corner-all" />
    <label for="lname">Last name</label>
    <input type="text" name="lname" id="lname-Worker" class="text ui-widget-content ui-corner-all" />
    <label for="age">Age</label>
    <input type="text" name="age" id="age-Worker" value="" class="text ui-widget-content ui-corner-all" />
    <label for="workExperience">Work Experience</label>
    <input type="text" name="workExperience" id="workExperience-Worker" value="" class="text ui-widget-content ui-corner-all" />
  </fieldset>
  </form>
</div>

 <div id="dialog-form-expert" title="Create new expert">
  <p class="validateTips">All form fields are required.</p>
 
  <form>
  <fieldset>
    <label for="fname">First name</label>
    <input type="text" name="fname" id="fname-Expert" class="text ui-widget-content ui-corner-all" />
    <label for="lname">Last name</label>
    <input type="text" name="lname" id="lname-Expert" class="text ui-widget-content ui-corner-all" />
    <label for="age">Age</label>
    <input type="text" name="age" id="age-Expert" value="" class="text ui-widget-content ui-corner-all" />
    <label for="workExperience">Work Experience</label>
    <input type="text" name="workExperience" id="workExperience-Expert" value="" class="text ui-widget-content ui-corner-all" />
    <label for="degree">Degree</label>
    <input type="text" name="degree" id="degree-Expert" value="" class="text ui-widget-content ui-corner-all" />
  </fieldset>
  </form>
</div>

<div id="dialog-form-manager" title="Create new manager">
  <p class="validateTips">All form fields are required.</p>
 
  <form>
  <fieldset>
    <label for="fname">First name</label>
    <input type="text" name="fname" id="fname-Manager" class="text ui-widget-content ui-corner-all" />
    <label for="lname">Last name</label>
    <input type="text" name="lname" id="lname-Manager" class="text ui-widget-content ui-corner-all" />
    <label for="age">Age</label>
    <input type="text" name="age" id="age-Manager" value="" class="text ui-widget-content ui-corner-all" />
    <label for="workExperience">Work Experience</label>
    <input type="text" name="workExperience" id="workExperience-Manager" value="" class="text ui-widget-content ui-corner-all" />
    <label for="degree">Degree</label>
    <input type="text" name="degree" id="degree-Manager" value="" class="text ui-widget-content ui-corner-all" />
  </fieldset>
  </form>
</div>

<div id="dialog-form-building" title="Create new building">
  <p class="validateTips">All form fields are required.</p>
 
  <form>
  <fieldset>
    <label for="name">Name</label>
    <input type="text" name="name" id="name-building" class="text ui-widget-content ui-corner-all" />
    <label for="area">Area</label>
    <input type="text" name="area" id="area-building" class="text ui-widget-content ui-corner-all" />
    <label for="retailPrice">Retail Price</label>
    <input type="text" name="retailPrice" id="retailPrice-building" value="" class="text ui-widget-content ui-corner-all" />
    <label for="rented">Rented</label> <!--//TODO: here can be radio button-->
    <input type="text" name="rented" id="rented-building" value="" class="text ui-widget-content ui-corner-all" />
    <label for="yearlyRent">Yearly Rent</label>
    <input type="text" name="yearlyRent" id="yearlyRent-building" value="" class="text ui-widget-content ui-corner-all" />
  </fieldset>
  </form>
</div>

<div id="dialog-form-administrative-building" title="Create new administrative building">
<p class="validateTips">All form fields are required.</p>
 
<form>
<fieldset>
<label for="name">Name</label>
<input type="text" name="name" id="name-administrative-building" class="text ui-widget-content ui-corner-all" />
<label for="area">Area</label>
<input type="text" name="area" id="area-administrative-building" class="text ui-widget-content ui-corner-all" />
<label for="retailPrice">Retail Price</label>
<input type="text" name="retailPrice" id="retailPrice-administrative-building" value="" class="text ui-widget-content ui-corner-all" />
<label for="rented">Rented</label> <!--//TODO: here can be radio button-->
<input type="text" name="rented" id="rented-administrative-building" value="" class="text ui-widget-content ui-corner-all" />
<label for="yearlyRent">Yearly Rent</label>
<input type="text" name="yearlyRent" id="yearlyRent-administrative-building" value="" class="text ui-widget-content ui-corner-all" />
</fieldset>
</form>
</div>

<div id="dialog-form-production-building" title="Create new production building">
<p class="validateTips">All form fields are required.</p>
 
<form>
<fieldset>
<label for="name">Name</label>
<input type="text" name="name" id="name-production-building" class="text ui-widget-content ui-corner-all" />
<label for="area">Area</label>
<input type="text" name="area" id="area-production-building" class="text ui-widget-content ui-corner-all" />
<label for="retailPrice">Retail Price</label>
<input type="text" name="retailPrice" id="retailPrice-production-building" value="" class="text ui-widget-content ui-corner-all" />
<label for="rented">Rented</label> <!--//TODO: here can be radio button-->
<input type="text" name="rented" id="rented-production-building" value="" class="text ui-widget-content ui-corner-all" />
<label for="yearlyRent">Yearly Rent</label>
<input type="text" name="yearlyRent" id="yearlyRent-production-building" value="" class="text ui-widget-content ui-corner-all" />
</fieldset>
</form>
</div>

 <div id="dialog-form-machine" title="Create new machine">
  <p class="validateTips">All form fields are required.</p>
 
  <form>
  <fieldset>
    <label for="years">Years</label>
    <input type="text" name="years" id="years-machine" class="text ui-widget-content ui-corner-all" />
    <label for="guarantee">Guarantee</label>
    <input type="text" name="guarantee" id="guarantee-machine" class="text ui-widget-content ui-corner-all" />
    <label for="amortizationPeriod">Amortization Period</label>
    <input type="text" name="amortizationPeriod" id="amortizationPeriod-machine" value="" class="text ui-widget-content ui-corner-all" />    
  </fieldset>
  </form>
</div>

 <div id="dialog-form-server" title="Create new server">
  <p class="validateTips">All form fields are required.</p>
 
  <form>
  <fieldset>
    <label for="years">Years</label>
    <input type="text" name="years" id="years-server" class="text ui-widget-content ui-corner-all" />
    <label for="guarantee">Guarantee</label>
    <input type="text" name="guarantee" id="guarantee-server" class="text ui-widget-content ui-corner-all" />
    <label for="amortizationPeriod">Amortization Period</label>
    <input type="text" name="amortizationPeriod" id="amortizationPeriod-server" value="" class="text ui-widget-content ui-corner-all" />    
    <label for="price">Price</label>
    <input type="text" name="price" id="price-server" value="" class="text ui-widget-content ui-corner-all" />
    <label for="os">Operating System</label>
    <input type="text" name="os" id="os-server" value="" class="text ui-widget-content ui-corner-all" />
    <label for="usage">Usage</label>
    <input type="text" name="usage" id="usage-server" value="" class="text ui-widget-content ui-corner-all" />
  </fieldset>
  </form>
</div>

 <div id="dialog-form-vehicle" title="Create new vehicle">
  <p class="validateTips">All form fields are required.</p>
 
  <form>
  <fieldset>
    <label for="years">Years</label>
    <input type="text" name="years" id="years-vehicle" class="text ui-widget-content ui-corner-all" />
    <label for="guarantee">Guarantee</label>
    <input type="text" name="guarantee" id="guarantee-vehicle" class="text ui-widget-content ui-corner-all" />
    <label for="amortizationPeriod">Amortization Period</label>
    <input type="text" name="amortizationPeriod" id="amortizationPeriod-vehicle" value="" class="text ui-widget-content ui-corner-all" />    
    <label for="mileage">Mileage</label>
    <input type="text" name="mileage" id="mileage-vehicle" value="" class="text ui-widget-content ui-corner-all" />
    <label for="leasing">Leasing</label>
    <input type="text" name="leasing" id="leasing-vehicle" value="" class="text ui-widget-content ui-corner-all" />
    <label for="typeOfVehicle">Type of vehicle</label>
    <input type="text" name="typeOfVehicle" id="typeOfVehicle-vehicle" value="" class="text ui-widget-content ui-corner-all" />
  </fieldset>
  </form>
</div>

<div id="dialog-form-branch" title="Create new branch">
  <p class="validateTips">All form fields are required.</p>
 
  <form>
  <fieldset>
    <label for="town">Town</label>
    <input type="text" name="town" id="town-branch" class="text ui-widget-content ui-corner-all" />
    <label for="numberOfPotentialClients">Number Of Potential Clients</label>
    <input type="text" name="numberOfPotentialClients" id="numberOfPotentialClients-branch" class="text ui-widget-content ui-corner-all" />    
  </fieldset>
  </form>
</div>

<button id="create-worker">Create new worker</button>
<button id="create-expert">Create new expert</button>
<button id="create-manager">Create new manager</button>
<button id="create-building">Create new building</button>
<button id="create-administrative-building">Create new administrative building</button>
<button id="create-production-building">Create new production building</button>
<button id="create-machine">Create new machine</button>
<button id="create-server">Create new server</button>
<button id="create-vehicle">Create new vehicle</button>
<button id="create-branch">Create new branch</button>      
    <script src="classes.js"></script>
	<script src="demo.js"></script>
</body>
</html>